package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

import java.util.Date;

@Data
@Notes("公共知识库")
@TablePlus(name = "dict_knowledge")
public class DictKnowledge extends BaseModel {

    @Notes("知识库文档id")
    @ColumnPlus()
    @FKPlus(tableClass = DictPlanDoc.class, column = "id")
    private Long plandoc_id;

    @Notes("所属类别（一级），area_info")
    @ColumnPlus(length = "10")
    private int province;

    @Notes("所属地市（二级），area_info")
    @ColumnPlus(length = "10")
    private int city;

    @Notes("所属区县（三级），area_info")
    @ColumnPlus(length = "10")
    private int county;

    @Notes("文档介绍")
    @ColumnPlus(default_val = "''", length = "200")
    private String introduce;

    @Notes("标签")
    @ColumnPlus(default_val = "''", length = "100")
    private String labels;

    @Notes("适用阶段，字典 dict2_knowledge_step")
    @ColumnPlus(default_val = "''", length = "100")
    private String step_arr;

    @Notes("适用行业，字典 dict2_industry")
    @ColumnPlus(default_val = "''", length = "100")
    private String industry_arr;

    @Notes("类别，字典 dict2_knowledge_type")
    @ColumnPlus(length = "2")
    private int type;

    @Notes("方案作者")
    @ColumnPlus(default_val = "''", length = "20")
    private String doc_author;

    @Notes("收录时间")
    @ColumnPlus
    private Date recruit_time;

    @Notes("收录人")
    @ColumnPlus(default_val = "''", length = "20")
    private String recruit_user;

    @Notes("状态，默认0。0草稿，1上架，2下架")
    @ColumnPlus()
    private int state;
}
